package jvm;

public class TestFinal {


    public static void main(String[] args) {
        Animal dog = new HabaDog();
        dog.eat();
    }
}

class Animal {
    public void eat() {
        System.out.println("animal eat");
    }
}

class Dog extends Animal {

    public final void eat() {
        System.out.println("dog eat");
    }
}

class HabaDog extends Dog {

}
